package com.dongdongshop.shiro;

import com.dongdongshop.enums.TokenEnum;
import lombok.Data;
import org.apache.shiro.authc.UsernamePasswordToken;
@Data
public class LoginToken extends UsernamePasswordToken {
    //使用枚举判断当前登陆的人
    private TokenEnum tokenEnum;

    public LoginToken(String username, String password, TokenEnum tokenEnum) {
        super(username, password);
        this.tokenEnum = tokenEnum;
    }
}
